<div style="height:50px; line-height:50px; clear:both;"></div>
<div class="v_nav">
    <div class="vf_nav">
        <ul>
            <li> <a href="{:url('Index/index')}">
                <i class="vf_1"></i>
                <span>首页</span></a></li>
            <!--<li><a href="{:url('Index/service')}">-->
                <!--<i class="vf_2"></i>-->
                <!--<span>客服</span></a></li>-->
            <li><a href="{:url('Classify/index')}">
                <i class="vf_3"></i>
                <span>分类</span></a></li>
            <li>
                <a href="{:url('Classify/shoppingtrolley')}" id="ssa">

                    <i class="vf_4"></i>
                    <span>购物车</span>
                </a>
            </li>
            <li><a href="{:url('User/index')}">
                <i class="vf_5"></i>
                <span>我的</span></a>
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function(){
//        var cart_cn = getCookie('cn');
//        if(cart_cn == ''){
        $.ajax({
            type : "GET",
            url:"{:url('User/header_cart_list')}",
            success: function(data){
                cart_cn = getCookie('cn');
                if(cart_cn>0){
                    $('#ssa').append("<em class='global-nav__nav-shop-cart-num' id='cart_quantity' style='right:9px;'>"+cart_cn+"</em>");
                }

            }
        });
//        }
//        $('#cart_quantity').html(cart_cn);
    });
</script>
